package com.simsuni.core;

import com.simsuni.core.ext.SimList;
import com.simsuni.core.ext.SimProcessible;
import com.simsuni.core.ext.SimQueue;
import com.simsuni.core.ext.SimStack;
import com.simsuni.core.ext.Simsuni;

public class SimServiceEntity extends SimEntity implements SimProcessible{

	private SimList simList;
	private int batchCount = 1;
	
	public SimServiceEntity(String name, int listType) {
		super(name);
		
		if(Simsuni.Queue == listType){
			
			this.simList = new SimQueue();
			
		}else if(Simsuni.Stack == listType){
			
			this.simList = new SimStack();
		}
			
	}
	public SimServiceEntity(String name, SimList simList){
		this.simList = simList;
	}
	
	public SimList getSimList() {
		return simList;
	}

	public int getBatchCount() {
		return batchCount;
	}
	public void setBatchCount(int batchCount) {
		this.batchCount = batchCount;
	}
	@Override
	public SimProcessible getNextStep() {
		return null;
	}
}
